<?php
namespace addons\Rewards\common\enums;
use common\enums\BaseEnum;

/**
 * 枚举
 *
 * Class GenderEnum
 * @package common\enums
 * @author YiiFrame <21931118@qq.com>
 */
class RewardsEnum extends BaseEnum
{
    const Reward = 0;
    const Punish = 1;

    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::Reward => '奖励',
            self::Punish => '惩罚',
        ];
    }

    public static function getValue($key): string
    {
        return static::getMap()[$key] ?? '';
    }
}